package cn.broadsense.thrid.param;

import cn.broadsense.thrid.result.AlarmSubscribePageResult;
import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 告警订阅查询
 *
 * @author pengxin
 * @date 2022-10-22 15:52
 */
@NoArgsConstructor
@Data
public class AlarmSubscribePageParam extends BasePageParam {


    private static final long serialVersionUID = 6716498524228495889L;

    /**
     * 查询参数
     */
    private ParamParam param = new ParamParam();


    @Override
    @JSONField(name = "pageNo")
    public Integer getPage() {
        return super.getPage();
    }

    @Override
    public void checkParam() {

    }

    @Override
    public Class getResultClass() {
        return AlarmSubscribePageResult.class;
    }

    @NoArgsConstructor
    @Data
    public static class ParamParam implements Serializable {
        private static final long serialVersionUID = -7382314311895509762L;
        private String algorithmName = "";
        private String applyId = "";
        private String channelCode = "";
        private String endDate = "";
        private String startDate = "";
        private Integer subscribeStatus = 0;
    }
}
